<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>电影后台管理系统</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 1000px;
            margin: 50px auto;
            padding: 20px;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
        }
        h1, h2 {
            color: #333;
            text-align: center;
        }
        form {
            display: grid;
            gap: 20px;
            margin-bottom: 40px;
        }
        label {
            font-weight: bold;
            margin-bottom: 5px;
        }
        input[type="text"], input[type="file"], input[type="number"], textarea {
            width: 100%;
            padding: 10px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        button {
            background-color: #007bff;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        button:hover {
            background-color: #0056b3;
        }
        .movie-list .movie-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px;
            background-color: #fafafa;
            border: 1px solid #eee;
            border-radius: 8px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
        }
        .movie-item img {
            max-width: 100px;
            max-height: 150px;
            border-radius: 8px;
        }
        .movie-info {
            flex: 1;
            margin-left: 20px;
        }
        .movie-info p {
            margin: 5px 0;
        }
        .remove-button {
            background-color: #dc3545;
            color: white;
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .remove-button:hover {
            background-color: #b02a37;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>电影后台管理系统</h1>

        <div class="section">
            <h2>上映电影</h2>
            <form id="movieForm" action="../AddMovieServlet" method="post" enctype="multipart/form-data">
                <label for="title">电影名称:</label>
                <input type="text" id="title" name="name" >

                <label for="posterSmall">小海报 (宽200高200):</label>
                <input type="file" id="posterSmall" name="poster" accept="image/*" >

                <label for="posterLarge">大海报 (宽480高350):</label>
                <input type="file" id="posterLarge" name="still" accept="image/*" >

                <label for="type">类型:</label>
                <input type="text" id="type" name="type" >

                <label for="details">详情:</label>
                <textarea id="details" name="details" rows="4" ></textarea>

                <label for="actors">主演:</label>
                <input type="text" id="actors" name="actors" >

                <label for="director">导演:</label>
                <input type="text" id="director" name="director" >
				
				<label for="director">时长:</label>
                <input type="text" id="time" name="time" >
                
                <label for="director">放映时间:</label>
                <input type="text" id="ftime" name="ftime" >
                
                <label for="rating">评分:</label>
                <input type="number" id="rating" name="rating" min="0" max="10" step="0.1" >
				
				<label for="director">价格:</label>
                <input type="text" id="price" name="price" >
                
                <label for="boxOffice">票房:</label>
                <input type="number" id="boxOffice" name="boxOffice" >

                <button type="submit">上映电影</button>
            </form>
        </div>

        

    
    </div>

    <script>
       
    </script>
</body>
</html>